package com.wwt.blog.controller;

import com.wwt.blog.service.TagService;
import com.wwt.blog.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/tags")
public class HotTagsController {
    /**
     * 最热标签
     */
    @Resource
    TagService tagService;
    @GetMapping("/hot")
    public Result getHotTags(){
        int limit=5;   //控制最热标签显示条数
        return tagService.hotTags(limit);
    }


}
